<%@page import="systems.RecentlyDomain"%>
<%@page import="systems.RecentlyUpdate"%>
<%@page import="java.util.ArrayList"%>
<%@page import="entities.Domain"%>
<%@page import="java.util.List"%>
<%
List<String> recentView = RecentlyDomain.getDomains();
ArrayList<String> currentUpdate = RecentlyUpdate.getDomains();
String name = (String) request.getParameter("name");
String hasAdv = (String) request.getParameter("hasAdv");
%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

				<aside>
                    <div id="rightSideContent">
                        <div class="simpleBox">
                            <form method="post" action="/home" class="searchDomain">
                                <label>
                                    <input type="text" value="Search domain" name="name"/>
                                </label>
                            </form>
                        </div>
                        <% if (hasAdv == null) { %>
                        <div class="simpleBox">
                        	<div class="adv-sidebar">
	                        	<script type="text/javascript"><!--
								google_ad_client = "ca-pub-2883566427648799";
								/* epufloor_250x250 */
								google_ad_slot = "5639977882";
								google_ad_width = 250;
								google_ad_height = 250;
								//-->
								</script>
								<script type="text/javascript"
								src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
								</script>
							</div>
                        </div>
                        <% } %>
                        
                        <% if (name != null) { %>
                        <div class="simpleBox tableOfContent">
                    		<h3 class="title"><span><%=name %></span></h3>
                    		<ul>
                    			<li><a href="#content-analysis">Content Analysis</a></li>
                    			<li><a href="#visitor-analysis">Visitor Analysis</a></li>
                    			<li><a href="#traffic-analysis">Traffic Analysis</a></li>
                    			<li><a href="#http-header-analysis">Http Header Analysis</a></li>
                    			<li><a href="#technical-analysis">Site Technical Analysis</a></li>
                    			<li><a href="#links-analysis">Links Analysis</a></li>
                    			<li><a href="#whois-analysis">Whois Analysis</a></li>
                    			<li><a href="#checkspeed-analysis">Check Speed Analysis</a></li>
                    			<li><a href="#links-analysis">Links Analysis</a></li>
                    			<li><a href="#html-analysis">HTML Analysis</a></li>
                    		</ul>
                    	</div>
                        <% } %>
                        <div class="simpleBox">
                            <h3 class="title"><span>FIND US ON FACEBOOK</span></h3>
                            <div class="simpleBoxContent">
                                
                            </div>
                        </div>
                        <div class="simpleBox">
                        	<h3 class="title"><span>Featured Site</span></h3>
                        	<a href="http://hatforrent.com/">
                            	<img src="/images/hatforrent.png" alt="hatforrent" width="255"/>
                            </a>
                        </div>
                        <div class="simpleBox">
                            <h3 class="title"><span>recently viewed</span></h3>
                            <div class="simpleBoxContent">
                                <ul class="disc">
                                	<% for (int i = 0; i < recentView.size(); i++) { %>
                                	<% if (i >=10) break; %>
                                    <li><a href="/info/<%=recentView.get(i)%>"><%=recentView.get(i) %></a></li>
                                    <% } %>
                                </ul>
                            </div>
                        </div>
                        <div class="simpleBox">
                            <h3 class="title"><span>Recently Update</span></h3>
                            <div class="simpleBoxContent">
                                <ul class="disc">
                                	<% for (int i = 0; i < currentUpdate.size(); i++) { %>
                                	<% if (i >=10) break; %>
                                    <li><a href="/info/<%=currentUpdate.get(i)%>"><%=currentUpdate.get(i) %></a></li>
                                    <% } %>
                                </ul>
                            </div>
                        </div>
                        
                        <div class="simpleBox">
                            <h3 class="title"><span>Popular sites</span></h3>
                            <div class="simpleBoxContent">
                                <ol class="decimal">
                                	<li><a href="http://hatforrent.com">hatforrent.com</a></li>
                                	<li><a href="http://www.siteempires.com">siteempires.com</a></li>
                                	<li><a href="http://www.yooarticles.net">yooarticles.com</a></li>
                                    <li><a href="http://www.domainworlds.eu">domainworlds.eu</a></li>
                                    <li><a href="http://www.fanpagerank.net">fanpagerank.net</a></li>
                                </ol>
                            </div>
                        </div>
                    </div>
                </aside>